#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/internal-functions"

cmd-ps-rebuildall() {
  declare desc="rebuilds all apps from source"
  declare cmd="ps:rebuildall"
  [[ "$1" == "$cmd" ]] && shift 1

  fn-ps-parallel-cmd "rebuild"
}

cmd-ps-rebuildall "$@"
